          <% if flash[:message] %><%=flash[:message]%><%end%>
       
<% if @memorylanes.size > 0 %>
  <h1>List of your Memory lanes</h1>



                <table>
                    <thead>
                        <tr>
                          <td><b>Id</b></td>
                           <td><b>Title</b></td>
                           <td><b>Actions</b></td>

                        </tr>
                    </thead>
                    <tbody>

                      <% memorylane_counter=0 %>
                      <% @memorylanes.each do |memorylane| %>

                               <% memorylane_counter=memorylane_counter+1 %>
                                <tr class=<%= ( memorylane_counter.modulo(2))==0 ? "even" : "odd" %> >
                                  <td><%= memorylane.id %></td>
                                  <td><%= memorylane.title %></td>
                                  <td>

                               <a href="<%= memorylane_path(memorylane.id) %>"> Show </a>
                               <a href="<%= edit_memorylane_path(memorylane.id) %>"> Edit </a>
                              <%= link_to 'delete', :action => 'delete', :id => memorylane.id %>


                                  </td>
                                </tr>
                     <%end%>
                    </tbody>
                </table>
<a href="<%= new_memorylane_path %>"> Add New </a>
<%else%>
      <h1>You have not created any memory lanes? Would you like to create one now?</h1>
      <a href="<%= new_memorylane_path %>"> Add New </a>
<%end%>


              
<br>

